package com.fzshang.shopping.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 建议反馈
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-12
 */
@ToString
@ApiModel(value="Feedback对象", description="建议反馈")
public class Feedback extends Model<Feedback> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "反馈类型")
    @TableField("type")
    private Long type;

    @ApiModelProperty(value = "反馈问题")
    @TableField("feedback")
    private String feedback;

    @ApiModelProperty(value = "联系电话")
    @TableField("phone")
    private String phone;

    @TableField("create_time")
    private Long createTime;

    @TableField("state")
    private Integer state;

    @TableField("url")
    private String url;

    @TableField(exist = false)
    private String name;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }
    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Feedback{" +
            "id=" + id +
            ", type=" + type +
            ", feedback=" + feedback +
            ", phone=" + phone +
            ", createTime=" + createTime +
        "}";
    }
}
